package cn.com.generaldata.jsme_indicator_system.entity;

import java.sql.Timestamp;

import lombok.Data;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

/**
 * 报表常用输入或显示的内容.
 */
@Data
@Table("tbl_report_input_title")
public class ReportInputTitle implements java.io.Serializable {

	/** 输入项 */
	public static final int TYPE_INPUT = 1;
	/** 显示项 */
	public static final int TYPE_DISPLAY = 2;

	private static final long serialVersionUID = -9198891607607973548L;

	// columns START
	/**
	 * id db_column: id
	 */
	@Id(auto = false)
	@Column("id")
	private Integer id;
	/**
	 * 显示的标题 db_column: title
	 */
	@Column("title")
	private String title;
	/**
	 * 对应的属性名称,作输入用 db_column: attr_name
	 */
	@Column("attr_name")
	private String attrName;
	/**
	 * 显示的表达式 db_column: exp
	 */
	@Column("exp")
	private String exp;
	/**
	 * 标题类型(1：输入项，2：显示项) db_column: type
	 */
	@Column("type")
	private Integer type;
	/**
	 * 所处报表区域 db_column: position
	 */
	@Column("position")
	private Integer position;
	/**
	 * 输入项的数据类型 db_column: data_type
	 */
	@Column("data_type")
	private Integer dataType;
	/**
	 * 创建时间 db_column: create_time
	 */
	@Column("create_time")
	private java.sql.Timestamp createTime = new Timestamp(System.currentTimeMillis());
	/**
	 * 最后修改时间 db_column: last_update
	 */
	@Column("last_update")
	private java.sql.Timestamp lastUpdate = new Timestamp(System.currentTimeMillis());
	// columns END

}
